package com.wgj.android.zfp;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

import com.jiaai.xui.utils.log.XLog;
import com.jiaai.xui.view.widget.XToast;

import org.greenrobot.eventbus.EventBus;

import cn.jpush.android.api.JPushInterface;

/**
 * Created by Administrator on 2017/11/24.
 */

public class CleanDisReciever extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        Bundle bundle = intent.getExtras();

        final String res = bundle.getString(JPushInterface.EXTRA_MESSAGE);
        if (res.startsWith("cleanFans:")){
            new Thread(new Runnable() {
                @Override
                public void run() {
                    EventBus.getDefault().postSticky(new NewZombieFanEvent(res));
                }
            }).start();
        }

    }
}
